cmake_minimum_required(VERSION 3.5)

project(main C CXX)

function(add_sys_libs _target)
	target_link_libraries(${_target} ${SUB_LIBS})
endfunction(add_sys_libs)

add_executable(main main.cpp)

add_subdirectory(sub)

add_sys_libs(main)
